import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/SchedMember/lists', // 会员列表
    method: 'post',
    data
  })
}
export function getDel(data) {
  return request({
    url: '/SchedMember/DelMember', // 删除会员
    method: 'post',
    data
  })
}
export function getAddEdit(data) {
  return request({
    url: '/SchedMember/AddEdit', // 添加编辑
    method: 'post',
    data
  })
}
export function delcard(data) {
  return request({
    url: '/SchedCard/delcard', // 删除卡名称
    method: 'post',
    data
  })
}

export function getConsultant(data) {
  return request({
    url: '/SchedMember/Consultant', // 会籍顾问
    method: 'post',
    data
  })
}

export function getChannel(data) {
  return request({
    url: '/SchedChannel/searchlist', // 渠道列表
    method: 'post',
    data
  })
}

export function channelAddEdit(data) {
  return request({
    url: '/SchedChannel/AddEdit', // 渠道添加/编辑
    method: 'post',
    data
  })
}

export function channelDel(data) {
  return request({
    url: '/SchedChannel/Del', // 渠道删除
    method: 'post',
    data
  })
}

export function getsearchList(data) {
  return request({
    url: '/SchedCard/lists', // 会员卡种类列表
    method: 'post',
    data
  })
}

export function searchList(data) {
  return request({
    url: '/SchedCard/lists_search', // 会员卡对外搜索
    method: 'post',
    data
  })
}

export function schedCardList(data) {
  return request({
    url: '/SchedCard/lists_search_course', // 会员卡对外搜索(创建课程)
    method: 'post',
    data
  })
}

export function searchLists(data) {
  return request({
    url: '/SchedCard/lists_search_card', // 会员卡对外搜索(会员发卡)
    method: 'post',
    data
  })
}

export function schedCardAddEdit(data) {
  return request({
    url: '/SchedCard/AddEdit', // 创建、修改会员卡点大合并版本
    method: 'post',
    data
  })
}

export function stopuse(data) {
  return request({
    url: '/SchedCard/Stopuse', // 停卡*开卡 会员卡种类
    method: 'post',
    data
  })
}

export function details(data) {
  return request({
    url: '/SchedCard/Details', // 会员卡种类详情
    method: 'post',
    data
  })
}

export function searchSousuo(data) {
  return request({
    url: '/SchedCard/Searchlist', // 会员卡列表（搜索内容）
    method: 'post',
    data
  })
}

export function cardList(data) {
  return request({
    url: '/SchedCard/CardList', // 会员卡列表
    method: 'post',
    data
  })
}

export function cardSearch(data) {
  return request({
    url: '/SchedMember/card_search', // 会员名称搜索
    method: 'post',
    data
  })
}

export function cardSearch1(data) {
  return request({
    url: 'SchedStaff/card_search', // 员工搜索（推荐人）
    method: 'post',
    data
  })
}

export function cardStoredList(data) {
  return request({
    url: '/SchedCard/stored_card_list', // 查询会员储值卡
    method: 'post',
    data
  })
}

export function couponStoredList(data) {
  return request({
    url: '/SchedCard/stored_coupon_list', // 查询会员储值卡
    method: 'post',
    data
  })
}

export function memberHairpin(data) {
  return request({
    url: '/SchedCard/hairpin_member', // 给会员发卡
    method: 'post',
    data
  })
}

export function cardEdit(data) {
  return request({
    url: '/SchedCard/cardEdit', // 会员发的卡编辑
    method: 'post',
    data
  })
}

export function AskForLeave(data) {
  return request({
    url: '/SchedCard/AskForLeave', // 请假
    method: 'post',
    data
  })
}

export function cardGetUser(data) {
  return request({
    url: '/SchedCard/CardGetUser', // 信息
    method: 'post',
    data
  })
}

export function AskForLeaveDetails(data) {
  return request({
    url: '/SchedCard/AskForLeave_details', // 信息
    method: 'post',
    data
  })
}

export function AskForLeaveExtend(data) {
  return request({
    url: '/SchedCard/AskForLeave_extend', // 延长请假
    method: 'post',
    data
  })
}

export function saleLeave(data) {
  return request({
    url: '/SchedCard/SaleLeave', // 销假
    method: 'post',
    data
  })
}

export function stopCard(data) {
  return request({
    url: '/SchedCard/StopCard', // 停卡
    method: 'post',
    data
  })
}

export function reportLoss(data) {
  return request({
    url: '/SchedCard/ReportLoss', // 卡挂失
    method: 'post',
    data
  })
}

export function relieveReportLoss(data) {
  return request({
    url: '/SchedCard/RelieveReportLoss', // 解除挂失
    method: 'post',
    data
  })
}

export function cardRenewal(data) {
  return request({
    url: '/SchedCard/CardRenewal', // 续卡
    method: 'post',
    data
  })
}

export function cardReplacement(data) {
  return request({
    url: '/SchedCard/CardReplacement', // 补卡
    method: 'post',
    data
  })
}

export function cardRefund(data) {
  return request({
    url: '/SchedCard/CardRefund', // 退卡
    method: 'post',
    data
  })
}

export function cardLessonsList(data) {
  return request({
    url: '/SchedCard/card_lessons_list', // 约课记录
    method: 'post',
    data
  })
}

export function relieveStopCard(data) {
  return request({
    url: '/SchedCard/RelieveStopCard', // 解除停卡
    method: 'post',
    data
  })
}

export function course(data) {
  return request({
    url: '/SchedCard/Course', // 获取课程选择信息
    method: 'post',
    data
  })
}

export function cardSearch2(data) {
  return request({
    url: '/SchedCard/CardSearch', // 续卡、卡升级(搜索 )
    method: 'post',
    data
  })
}

export function getCardDetails(data) {
  return request({
    url: '/SchedCard/CardDetails', // 会员卡详情
    method: 'post',
    data
  })
}

export function MemberDetails(data) {
  return request({
    url: '/SchedMember/Details', // 会员卡种类详情
    method: 'post',
    data
  })
}

export function recommendCardUser(data) {
  return request({
    url: '/SchedCard/RecommendCardUser', // 推荐办卡人
    method: 'post',
    data
  })
}

export function cardEventRecord(data) {
  return request({
    url: '/SchedCard/CardEventRecord', // 推荐办卡人
    method: 'post',
    data
  })
}

export function bulkOperation(data) {
  return request({
    url: '/schedCard/bulk_operation', // 批量编辑
    method: 'post',
    data
  })
}

export function cardDel(data) {
  return request({
    url: '/SchedCard/CardDel', // 卡删除
    method: 'post',
    data
  })
}

export function cardUpgrade(data) {
  return request({
    url: '/SchedCard/CardUpgrade', // 卡升级
    method: 'post',
    data
  })
}

export function getCardList(data) {
  return request({
    url: '/SchedMember/CardList', // 会员卡信息列表
    method: 'post',
    data
  })
}

export function getScoreList(data) {
  return request({
    url: '/SchedMember/ScoreList', // 积分明细列表
    method: 'post',
    data
  })
}

export function editScore(data) {
  return request({
    url: '/SchedMember/EditScore', // 积分明细列表
    method: 'post',
    data
  })
}

export function addFollow(data) {
  return request({
    url: '/SchedMember/AddFollow', // 新增回访记录
    method: 'post',
    data
  })
}

export function getFollowList(data) {
  return request({
    url: '/SchedMember/FollowList', // 回访记录列表
    method: 'post',
    data
  })
}

export function getDelName(data) {
  return request({
    url: '/schedCard/del_name', // 删除会员卡名称
    method: 'post',
    data
  })
}

export function getLevellist(data) {
  return request({
    url: '/SchedCard/levellist', // 删除会员卡名称
    method: 'post',
    data
  })
}
export function ActCard(data) {
  return request({
    url: '/SchedCard/ActCard', // 开卡
    method: 'post',
    data
  })
}

export function getTelFindmember(data) {
  return request({
    url: '/SchedMember/TelFindmember', // 同步会员
    method: 'post',
    data
  })
}

export function getTelListmember(data) {
  return request({
    url: '/SchedMember/TelListmember', // 同步会员
    method: 'post',
    data
  })
}

export function getImportMember(data) {
  return request({
    url: '/SchedMember/importMember', // 同步会员
    method: 'post',
    data
  })
}

export function getImportMemberCard(data) {
  return request({
    url: '/SchedCard/importCard', // 同步会员
    method: 'post',
    data
  })
}

export function importExcelMemberCard(data) {
  return request({
    url: '/SchedMember/member_card_importexcel', // 同步会员
    method: 'post',
    data,
    responseType: 'blob'
  })
}
export function zkCode(data) {
  return request({
    url: '/SchedMember/zkCode',
    method: 'post',
    data
  })
}
export function zhuanka(data) {
  return request({
    url: '/SchedMember/zhuanka',
    method: 'post',
    data
  })
}
// 导出引用检查能力
// export function exportDifferentStatus (data) {
//   return request({
//     url: baseUrl + 'skuQuoteService/exportDifferentStatus',
//     method: 'POST',
//     data,
//     responseType: 'blob',
//   });
// }
